<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr = ['a', 'a', 'a', 'b', 'b', 'c', 'c', 'c', 'c', 'd', 'd', 'd', 'd']

        function chengfabiao(arr) {
            var sum = ""
            for (var i = 1; i <= 9; i++) {
                for (var j = 1; j <= i; j++) {
                    var hang = j + "*" + i + "=" + i * j + "\t";
                    sum += hang
                }
                sum += "\n"
            }
            console.log(sum);
        }

        chengfabiao(arr);
    </script>
</head>

<body>

</body>

</html>